package com.hoshiicloud.commissioncalculation.entity;

import java.math.BigDecimal;
import java.util.Date;

import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;

import java.io.Serializable;

import lombok.*;
import lombok.experimental.Accessors;

/**
 * 提现申请(CashRecord)cash_record
 *
 * @author makejava
 * @since 2019-09-09 10:18:01
 */
@Data
@EqualsAndHashCode(callSuper = true)
@Builder
@NoArgsConstructor
@AllArgsConstructor
@Accessors(chain = true)
@TableName("cash_record")
public class CashRecord extends Model<CashRecord> {


    @TableField("id")
    private Long id;

    /**
     * 租合ID
     */
    @TableField("companyid")
    private Long companyid;

    /**
     * 平台ID
     */
    @TableField("platformid")
    private Long platformid;

    /**
     * 店铺ID
     */
    @TableField("storeid")
    private Long storeid;

    /**
     * 单号
     */
    @TableField("order_no")
    private Long orderNo;

    /**
     * 渠道单号
     */
    @TableField("channel_no")
    private String channelNo;

    /**
     * 用户id
     */
    @TableField("member_id")
    private Long memberId;

    /**
     * 提现金额
     */
    @TableField("amount")
    private BigDecimal amount;

    /**
     * 手续费
     */
    @TableField("fee")
    private Double fee;

    /**
     * 银行卡号
     */
    @TableField("card_no")
    private String cardNo;

    /**
     * 开户银行id
     */
    @TableField("bank_id")
    private Long bankId;

    /**
     * 状态 1-申请中 2-已处理 3- 申请失败
     */
    @TableField("status")
    private Integer status;

    /**
     * 建立人
     */
    @TableField("createdby")
    private String createdby;

    /**
     * 建立时间
     */
    @TableField("createdtime")
    private Date createdtime;

    /**
     * 修改时间
     */
    @TableField("updatedtime")
    private Date updatedtime;

    /**
     * 修改人
     */
    @TableField("updatedby")
    private String updatedby;

}